package qc.common.core.enums.qms;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * QMS告警等级枚举
 *
 * @author QuCheng Tech
 * @since 2025/10/20
 */
@Getter
@AllArgsConstructor
public enum QmsAlarmLevelEnum {
    NONE(0, "未触发"),//不触发任何告警
    CANCEL(9, "取消"),//取消告警，复归、平安报、Reset
    NO_RATING(5, "未分级"),//触发告警，但没有区分告警等级
    BLUE(4, "蓝色"),
    YELLOW(3, "黄色"),
    ORANGE(2, "橙色"),
    RED(1, "红色");

    @EnumValue
    private int index;
    private String name;

    @Override
    public String toString() {
        if (this != null)
            return this.name;

        return null;
    }
}
